-- GENERATED SPELL FOR [Ice Elemental] --


function spell0_23919(pUnit, Event) --@Throw Ice,n/a--
pUnit:FullCastSpellOnTarget(43543,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23919', 2000, 1)
end

function Sorts_23919(pUnit, Event)
local choix_sorts_23919 = math.random(0, 0)
if choix_sorts_23919 == 0 then
pUnit:RegisterEvent('spell0_23919', 1, 1)
end
end

function mob23919_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23919', math.random(1500, 3000), 1)
end

function mob23919_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23919_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23919_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23919, 1, 'mob23919_Action')
RegisterUnitEvent(23919, 2, 'mob23919_Leave')
RegisterUnitEvent(23919, 3, 'mob23919_Kill')
RegisterUnitEvent(23919, 4, 'mob23919_Die')
